package com.hfjava.practice05;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: com.hfjava.practice05
 * @ClassName: TestSales
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/27 9:43
 * @Copyright 大牛版板所有
 */
public class TestSales {
    public static void main(String[] args) {
        SaleTicket s = new SaleTicket();
        Thread sale1 = new Thread(s,"包河售票点");
        Thread sale2 = new Thread(s,"蜀山售票点");
        Thread sale3 = new Thread(s,"高新售票点");
        Thread sale4 = new Thread(s,"瑶海售票点");
        Thread sale5 = new Thread(s,"庐阳售票点");

        sale1.setPriority(2);
        sale2.setPriority(1);
        sale3.setPriority(5);
        sale4.setPriority(9);
        sale5.setPriority(8);

        sale1.start();
        sale2.start();
        sale3.start();
        sale4.start();
        sale5.start();
    }
}
